package $NAMESPACE.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.ugeez.commons.mybatisplus.entity.AbstractEntity;
import $NAMESPACE.persistence.entity.handler.XXXEnumTypeHandler;
import $NAMESPACE.common.enums.XXXEnum;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@TableName(value = "tb_some_entity", resultMap = "some_entity_result_map")
public class SomeEntity extends AbstractEntity<SomeEntity> {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 枚举类型
     */
    @TableField(typeHandler = XXXEnumTypeHandler.class)
    protected XXXEnum xxx;

    /**
     * 特殊业务数据
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    protected Map<String, Object> biz;
}
